<div class="layui-form" lay-filter="layuiadmin-form-chakan" style="padding: 20px 30px 0 0;margin: 0 auto;">
    <div class="layui-form-item">
        <label class="layui-form-label">公司名称:</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="companyName" value="{{ d.params.companyName || '' }}" lay-verify="" readonly="readonly" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系人:</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="contact" value="{{ d.params.contact || '' }}" lay-verify="" readonly="readonly" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系方式:</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="tel" value="{{ d.params.tel || '' }}" lay-verify="" readonly="readonly" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <!-- <div class="layui-form-item">
        <label class="layui-form-label">AGV车辆编号</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="agvId" value="{{ d.params.agvId || '' }}" lay-verify="" placeholder="请输入车辆编号" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">控制板编号</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="ctrlId" value="{{ d.params.ctrlId || '' }}" lay-verify="" placeholder="请输入控制板编号" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div> -->
    <!-- <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认" class="layui-btn">
        </div>
    </div> -->
</div>

<style type="text/css">
    .layui-form-label {
        width: 95px;
    }
    
    .layui-input {
        border: none !important;
    }
</style>

<script>
    layui.use(['admin', 'form', 'upload'], function() {
        var $ = layui.$,
            setter = layui.setter,
            form = layui.form,
            upload = layui.upload;

        upload.render({
            elem: '#layuiadmin-upload-useradmin',
            url: setter.request.baseUrl + '/upload/uploadImg',
            accept: 'images',
            method: 'get',
            acceptMime: 'image/*',
            before: function(obj) { //obj参数包含的信息，跟 choose回调完全一致，可参见上文。
                layer.load(); //上传loading
            },
            done: function(res) {
                layer.closeAll('loading'); //关闭loading
                $(this.item).prev("div").children("input").val(res.path)
                $("#img-intsance").attr("src", res.path);
            }
        });

        localStorage.setItem('upimg', JSON.stringify([]));
        $("#content").blur(function() {
            var _this = $(this);
            layer.alert(_this.val());
        })

    })
</script>